home *** CD-ROM | disk | FTP | other *** search
/ PC-Blue - MS DOS Public Domain Library / PC-Blue MS-DOS Public Domain Library - NYACC.iso / vol130 / tutorial.doc < prev    next >
Encoding:
Text File  |  1986-12-15  |  11.7 KB  |  297 lines

  1. 12  Tutorial:  Introduction
  2.  
  3. In this section we'll go through the process of creating
  4. and editing a simple text file.  You'll learn how to use
  5. the following keys:
  6.  
  7.    Normal typewriter keys (letters, etc)
  8.    Shift and Caps Lock keys for letters
  9.    Scroll Lock key
  10.    Enter key
  11.    Bksp (Backspace), Ins, and Del keys
  12.    Four cursor movement arrow keys
  13.    Home, End, PgUp, and PgDn keys
  14.    F1 function key, F2 and F3 options
  15.  
  16. You can do a lot of editing with just these keys.  When
  17. you feel comfortable with them you can pick up other
  18. keys, as you need them.
  19.  
  20. If you press a key PC-Write is not expecting, or try to
  21. move the cursor somewhere it can't move, you hear a
  22. beeping noise.  Try Alt with letter A, for example.
  23.  
  24. We'll start by creating a new file.  Let's call it TEST.
  25. You should have a diskette in the default drive with
  26. ED.EXE on it.  Since this is a demonstration creating a
  27. new file, the file TEST should not be on the diskette.
  28.  
  29. You can use a file name with a drive (like B:TEST) or an
  30. extension (like TEST.DOC) if you like.  With DOS 2.00 you
  31. can also use a pathname (like DEMO\TEST).  PC-Write uses
  32. standard DOS files and file names.  It treats all file
  33. names the same;  it passes the drive, extension and path 
  34. to the DOS normally.  The full file name must fit in 30 
  35. characters, however.  
  36. 13  Tutorial:  Starting the Editor 
  37.  
  38. Turn on your computer and load DOS as usual.  Assume the 
  39. default drive is A.  The DOS is asking for a command with: 
  40.  
  41.    A>
  42.  
  43. Now type ED, a space, and the name of the file you want
  44. to use.  In this case the name is TEST, so you type:
  45.  
  46.    A>ed test
  47.  
  48. You can type in upper or lower case, or a mixture.  After 
  49. typing the line, press the Enter key to start PC-Write.  
  50.  
  51. If you just type "ed", without giving the name of a file
  52. to create or edit, PC-Write uses the file named WORK.DOC.
  53.  
  54. The first thing PC-Write does is check whether the file,
  55. TEST, exists.  If it does not, it tells you on the top
  56. line with:
  57.  
  58.    New file.  Press Esc to cancel, or F1 to create "test"
  59.  
  60. If you had wanted to edit a file named BEST but typed
  61. TEST by mistake, you could press the Escape key to stop
  62. editing, go back to the DOS, and try again.  But you want
  63. to create the new file TEST, so press F1.
  64.  
  65. PC-Write displays the normal top line, in this case:
  66.  
  67.    F1 Help. Push#JustOff. 99% Free. 00% Thru. Read "test"
  68.  
  69. This line says "Read" even though there is no text yet.
  70. As soon as you add or change something it says "Edit".
  71. "Read" means the text (if any) on the diskette is the
  72. same as internal memory;  "Edit" means it is different.
  73. 14  Tutorial:  Typing Characters
  74.  
  75. Type a few sentences, as you would on a typewriter.  Try
  76. two ways of starting new lines, with the Enter key and
  77. with "wordwrap".  Type one line and press Enter to start
  78. a new line.  Type another line all the way to the right
  79. side of the screen, and wordwrap starts a line for you.
  80. Most people get used to wordwrap very quickly.
  81.  
  82. Use the shift keys to capitalize letters.  Press Caps
  83. Lock once and type in all caps.  Notice only the
  84. alphabetic keys are affected.  If you use a shift key
  85. when Caps Lock is on, you get lower case.  Try it.
  86.  
  87. Hold down a key and watch it repeat.  Make a row of dots.
  88.  
  89. Let's push the cursor around.  Use the four white keys
  90. with arrows on them, on the right.  Move the cursor to
  91. different places.  Hold down an arrow, watch it repeat.
  92.  
  93. The Home key moves the cursor to the left margin.  The
  94. left margin may or may not be at the first character on
  95. the line, or the first physical column.  Try it.
  96.  
  97. The End key moves the cursor to the end of the line, just
  98. after the last character on the line.  Spaces at the end
  99. of the line are included.  Try it.  Compare it with Home.
  100.  
  101. Press the PgDn key and watch the screen go down.  Press
  102. PgUp and watch it go up.  Hold them to repeat.  These
  103. keys are more useful when you have more text.  If they
  104. seem reversed to you, you can change them later.
  105.  
  106. Move the cursor over some text and type some characters.
  107. As you type, the characters on the right are pushed over
  108. to make room.  You are in Pushright mode.
  109.  
  110. Press the Scroll Lock key once (on the PCjr, this is the
  111. Fn key with S, marked "ScLock").  Type some characters
  112. and watch them write over the old characters.  You are in
  113. Overwrite mode.  Press Scroll Lock a few times and watch
  114. the cursor change.  It is thicker in Pushright mode, so
  115. it can "push" better.  After some practice, you'll always
  116. know which mode you're in by looking at the cursor.
  117. 15  Tutorial:  The Bksp key
  118.  
  119. When you edit text, you do two kinds of actions:  moving
  120. the cursor and screen to different parts of your text,
  121. and making changes to your text.  There are two main ways
  122. to change text:  add new text or remove existing text.
  123.  
  124. Removing text is called deleting it.  PC-Write provides
  125. many ways to delete;  the most basic are the Del or Bksp
  126. (Backspace) keys to delete one character at a time.
  127.  
  128. Bksp is the key above the Enter key, with a large arrow
  129. on it.  If you mis-type a character, press Bksp to delete
  130. it.  The cursor moves back so you can type the correct
  131. character.
  132.  
  133. Bksp moves the cursor like the Left arrow key, except it
  134. deletes the character.  Some people call it destructive
  135. backspace, and the Left arrow non-destructive backspace.
  136.  
  137. In Pushright mode, Bksp pulls the rest of the line left.
  138. In Overwrite mode it just moves left and replaces the
  139. character with a space.  The space bar pushes right in
  140. Pushright mode, or overwrites and moves the cursor right
  141. in Overwrite mode, so Bksp and space are complementary.
  142.  
  143. Try the Bksp key.  Use it in Pushright and Overwrite
  144. mode.  Hold it down to repeat.  Compare it with a space.
  145.  
  146. At the end of every line is a line boundary character.
  147. This is an "invisible" character, like a space character.
  148. Just like the letter A key inserts a letter A, the Enter
  149. key or the wordwrap process insert a line boundary.
  150.  
  151. What happens if the cursor is at the start of a line and
  152. you press Bksp ?  In Pushright mode you delete the line
  153. boundary character.  Join two lines by deleting the line
  154. boundary.  Split them again by pressing the Enter key.
  155. 16  Tutorial:  Ins and Del keys
  156.  
  157. The other single character delete key is the Del key.  It
  158. deletes a character, too, but it doesn't move the cursor.
  159. It always pulls the rest of the line to the left, even in
  160. Overwrite mode.
  161.  
  162. Try the Del key.  Compare it with the Bksp key.  Put the
  163. cursor at the end of a line (with End) and use Del to
  164. delete the line boundary.  Press Enter to split the line.
  165.  
  166. To delete text after the cursor, use Del.  To delete text
  167. before the cursor, use Bksp.
  168.  
  169. If you happen to be in Overwrite mode and want to replace
  170. a word with a shorter one, use Del to close up the line.
  171. For example, if you typed "A yellow rose" and want to
  172. make it "A blue rose", put the cursor at "yellow", type
  173. "blue", and press Del twice to close up the line.
  174.  
  175. But what if you're in Overwrite mode and want to change
  176. "blue" back to "yellow" ?  You need the Ins key.  It
  177. inserts spaces, even in Overwrite mode.  Put the cursor
  178. at "blue", press Ins twice, and type "yellow".
  179.  
  180. The Ins key is like the space bar in Pushright mode.
  181. However, like Del, it doesn't move the cursor.  Ins and
  182. Del are not affected by Pushright or Overwrite mode.
  183.  
  184. You can use Ins and Del to shift a line to the right or
  185. left.  Put the cursor at the start of a line, and press
  186. the Ins key a few times.  Watch the line shift to the
  187. right.  Now press the Del key a few times and watch it
  188. shift to the left.
  189.  
  190. Several keys are all related:  the Left and Right arrows,
  191. Del and Ins, and Bksp and space bar.  After a while you
  192. may pick some keys you like for editing.  Perhaps you
  193. will stay in Pushright mode, and mostly use the Bksp key.
  194. Perhaps you will stay in Overwrite mode, and use Bksp
  195. with Ins and Del.  Perhaps you will use both methods.
  196. 17  Tutorial:  Help Screen and Saving
  197.  
  198. Now you know the basics of editing text.  All your work
  199. was done only in internal memory.  To print or otherwise
  200. use your work, you need to copy it to the diskette.
  201.  
  202. The F1 key handles this chore.  It also shows the Help
  203. screen, and lets you exit or edit another file.
  204.  
  205. The main Help screen may look confusing at first.  It is
  206. not intended to teach how to use PC-Write.  Instead, it
  207. helps you remember which key does what.  There are more
  208. Help screens that are easier to read.  Press the F1 key.
  209. Find the keys you have learned so far on the Help screen:
  210.  
  211.    F1        Bksp      ScrLock   Enter
  212.    Home/End  Ins/Del   PgUp/PgDd Up/Down/Left/Right Arrow
  213.  
  214. Press the up and down arrows to see other Help screens.
  215. On the top line, look at the message for F1 actions:
  216.  
  217.    F1:continue F2:exit F3:save ...(other options)
  218.  
  219. There are a number of things you can do here.  We'll learn
  220. three of them:  F1 to just continue editing,  F2 to exit to
  221. the DOS, and F3 to save your text on the diskette.
  222.  
  223. After switching to the Help screen with F1, you can
  224. switch back to your text by pressing F1 again.  Press F1
  225. a few times and watch the screen switch back and forth.
  226.  
  227. After switching to Help with F1, you can press F3 to save
  228. text in internal memory to the disk file.  Try pressing
  229. F1 and then F3.  The top line switches (briefly) to:
  230.  
  231.    Writing "test", nnnn bytes to write.
  232.  
  233. The disk drive runs, and you see your text again with the
  234. normal top line.  Now it says Read "test" instead of Edit
  235. "test", since the text in internal memory is the same as
  236. the text on the diskette.  If you make a change, the top
  237. line will say Edit again.  Save your text with F1 and F3
  238. often;  losing work can be frustrating!
  239. 18  Tutorial:  Exiting and Re-editing
  240.  
  241. Pressing F1 followed by F2 finishes running the editor
  242. program and returns to the DOS, so you can run some other
  243. program.  If you changed your text, it is saved on the
  244. diskette first.  If not, the text in internal memory is
  245. the same as on the diskette, so there is no need to save.
  246.  
  247. Go ahead and exit the editor by pressing F1 and then F2.
  248. Now let's edit the file you created.  As before, type:
  249.  
  250.    A>ed test
  251.  
  252. As before, PC-Write checks whether the file TEST exists.
  253. This time it does, so it displays:
  254.  
  255.    Reading "test", nnnn bytes are free.
  256.  
  257. After the file has been read, you see the message:
  258.  
  259.    Press Esc to cancel backup copy, or F1 to write "tes$"
  260.  
  261. Now you have a choice.  You can start editing immediately
  262. or first write a backup copy of your text to the file
  263. named TES$.  If you press F1, you'll see (briefly):
  264.  
  265.    Writing "tes$", nnnn bytes to write.
  266.  
  267. The idea of a backup file is like the idea of saving your
  268. text while you are editing.  A backup file protects you
  269. if your file gets written to a worn spot on the diskette.
  270. It also protects you from making a mistake while editing
  271. and saving your text (with the mistake) to the main file.
  272.  
  273. The name of the backup file comes from the name of the
  274. file you are editing.  The last character is replaced
  275. with a "$".  If you are editing a file whose name already
  276. ends with $, there is no separate backup file.
  277.  
  278. Now you can edit your file again.  Practice the keys you
  279. have learned.  Try creating new files and editing them.
  280. 18a Tutorual:  Printing
  281.  
  282. You just used the editoor program, ED.EXE, to edit your 
  283. text.  Usually you use the page printer program, PR.EXE, 
  284. to print your text.  For example, to print the file TEST 
  285. that you just created, tell the DOS: 
  286.  
  287.    A>pr test
  288.  
  289. If the file TEST has move than 60 lines of text, the page 
  290. printer will automatically divide it into pages.
  291.  
  292. The page printer tries to read a file named RULER.PRT, to 
  293. learn about your printer.  The Installation procedure 
  294. (page 4) described how to make this RULER.PRT file.  If 
  295. the page printer cannot find this file, it asks you for a 
  296. file to use.  Just press the Enter key if this happens.  
  297.